package com.doctor.utils.string;

import java.text.DecimalFormat;

/**
 * Created by chemin on 2016/11/11.
 */
public class BigNumUtil {
    public static String bigNumformate(int num){
        if (num>9999){
            double formatNum=num/10000;
            DecimalFormat df = new DecimalFormat("0.##");//格式化成两位小数
            return String.valueOf(df.format(formatNum))+"万";
        }else {
            return String.valueOf(num);
        }
    }
}
